<script>
	import { onMount } from 'svelte';

	import { createScene, resize, cube } from '$lib/webgl/ts/untils/scene';
	let el;
	onMount(() => {
		createScene(el);
	});
	import anime from 'animejs';
	function test() {
		anime({
			targets: cube.scale,
			x: 3,
			y: 1.5,
			z: 3
		});
	}
</script>

<svelte:window on:resize={resize} />

<canvas bind:this={el} on:click={test} />
